<!--{assign var="menu_id" value="profile"}-->
<!--{include file="<!--{$oetplpath}-->block_header.tpl"}--> 
<!--{include file="<!--{$oetplpath}-->block_top.tpl"}-->
<!--{include file="<!--{$oetplpath}-->block_banner.tpl"}-->
<script src="<!--{$userskin}-->js/profile.js"></script>
<div class="oe_inmain"> 
  <!--{include file="<!--{$oetplpath}-->block_left.tpl"}-->
  <div class="right">
    <div class="oe_ufriend">
      <div class="oe_unav">编辑资料</div>
	  <!--{include file="<!--{$oetplpath}-->profile_top.tpl"}-->
      <div class="oe_utitle">
        <ul>
          <li><a href="<!--{$oefile}-->&c=<!--{$c}-->">基本资料</a></li>
		  <li><a href="<!--{$oefile}-->&c=<!--{$c}-->&a=life" class="current">个人&家庭</a></li>
		  <li><a href="<!--{$oefile}-->&c=<!--{$c}-->&a=guihua">爱情规划</a></li>
		  <li><a href="<!--{$oefile}-->&c=<!--{$c}-->&a=intro">内心独白</a></li>
		  <li><a href="<!--{$oefile}-->&c=<!--{$c}-->&a=cond">择偶条件</a></li>
		  <li><a href="<!--{$oefile}-->&c=rz">联系方式</a></li>
        </ul>
        <div class="clear"></div>
      </div>

      <div class="profile_list">
        <div class="hd">
          <p class="text">完善个人&家庭资料，让异性更加了解您！</p>
        </div>
	    
		<form id="myform" action="<!--{$oefile}-->&c=<!--{$c}-->" method="post">
		<input type="hidden" name="a" id="a" value="savelife" />
        <div class="bd">
		  <dl>
			<dt>宗教信仰：</dt>
			<dd><!--{hook mod="var" item="faith" type="select" name="faith" text="=请选择=" value=$login.info.faith}--></dd>
		  </dl>
          <dl>
		    <dt>是否吸烟：</dt>
			<dd><!--{hook mod="var" item="smoking" type="select" name="smoking" text="=请选择=" value=$login.info.smoking}--></dd>
		  </dl>
		  <dl>
		    <dt>是否喝酒：</dt>
			<dd><!--{hook mod="var" item="drinking" type="select" name="drinking" text="=请选择=" value=$login.info.drinking}--></dd>
		  </dl>
		  <dl>
			<dt>公司性质：</dt>
			<dd><!--{hook mod="var" item="companytype" type="select" name="companytype" text="=请选择=" value=$login.info.companytype}--></dd>
		  </dl>
		  <dl>
			<dt>工作状态：</dt>
			<dd><!--{hook mod="var" item="workstatus" type="select" name="workstatus" text="=请选择=" value=$login.info.workstatus}--></dd>
		  </dl>
		  <dl>
			<dt>作息习惯：</dt>
			<dd><!--{hook mod="var" item="rest" type="select" name="rest" text="=请选择=" value=$login.info.rest}--></dd>
		  </dl>
		  <dl>
			<dt>锻炼习惯：</dt>
			<dd><!--{hook mod="var" item="workout" type="select" name="workout" text="=请选择=" value=$login.info.workout}--></dd>
		  </dl>
		  <dl>
			<dt>身体状况：</dt>
			<dd><!--{hook mod="var" item="health" type="select" name="health" text="=请选择=" value=$login.info.health}--></dd>
		  </dl>
		  <dl>
			<dt>有无外债：</dt>
			<dd><!--{hook mod="var" item="debt" type="select" name="debt" text="=请选择=" value=$login.info.debt}--></dd>
		  </dl>
		  <dl>
			<dt>有无犯罪记录：</dt>
			<dd><!--{hook mod="var" item="sin" type="select" name="sin" text="=请选择=" value=$login.info.sin}--></dd>
		  </dl>
		  <dl>
			<dt>家庭背景：</dt>
			<dd><!--{hook mod="var" item="familyback" type="select" name="familyback" text="=请选择=" value=$login.info.familyback}--></dd>
		  </dl>
		  <dl>
			<dt>父母情况：</dt>
			<dd><!--{hook mod="var" item="parentstatus" type="select" name="parentstatus" text="=请选择=" value=$login.info.parentstatus}--></dd>
		  </dl>
		  <dl>
			<dt>父母经济：</dt>
			<dd><!--{hook mod="var" item="parenteconomic" type="select" name="parenteconomic" text="=请选择=" value=$login.info.parenteconomic}--></dd>
		  </dl>
		  <dl>
			<dt>父母医保：</dt>
			<dd><!--{hook mod="var" item="parentshealthcare" type="select" name="parentshealthcare" text="=请选择=" value=$login.info.parentshealthcare}--></dd>
		  </dl>
		  <dl>
			<dt>父亲工作：</dt>
			<dd><!--{hook mod="var" item="fatherwork" type="select" name="fatherwork" text="=请选择=" value=$login.info.fatherwork}--></dd>
		  </dl>
		  <dl>
			<dt>母亲工作：</dt>
			<dd><!--{hook mod="var" item="motherwork" type="select" name="motherwork" text="=请选择=" value=$login.info.motherwork}--></dd>
		  </dl>
		  <dl>
			<dt>家中排行：</dt>
			<dd><!--{hook mod="var" item="tophome" type="select" name="tophome" text="=请选择=" value=$login.info.tophome}--></dd>
		  </dl>
		  <dl>
			<dt>兄弟姐妹：</dt>
			<dd>
			哥哥：<!--{hook mod="var" item="elderbrother" type="select" name="elderbrother" text="--" value=$login.info.elderbrother}--> 
			姐姐：<!--{hook mod="var" item="eldersister" type="select" name="eldersister" text="--" value=$login.info.eldersister}--> 
			弟弟：<!--{hook mod="var" item="youngerbrother" type="select" name="youngerbrother" text="--" value=$login.info.youngerbrother}--> 
			妹妹：<!--{hook mod="var" item="youngersister" type="select" name="youngersister" text="--" value=$login.info.youngersister}--> 
			</dd>
		  </dl>

		  <dl>
			<dt>掌握语言：</dt>
			<dd class="hobby" id="language_list">
				<input type="hidden" name="language" id="language" value="<!--{$login.info.language}-->" />
				<!--{assign var="v_list" value=vo_list("mod={volistvar} where={language}")}-->
				<!--{foreach $v_list as $val}-->
				<!--{assign var="is_select" value=<!--{tofound value="<!--{$login.info.language}-->" tofound="<!--{$val.value}-->"}-->}-->
				<em<!--{if $is_select == '1'}--> class="current"<!--{/if}--> f="but_sel_var" data-id="<!--{$val.value}-->"><!--{$val.text}--></em>
				<!--{/foreach}-->
			</dd>
		  </dl>

		  <dl class="btn">

			<dt></dt>

			<dd><label f="but_save">保存</label></dd>

		  </dl>
        </div>
		<!--//bd End-->
		</form>

      </div>
	  <!--//profile_list End-->
      
    </div>
  </div>
  <div class="clear"></div>
</div>
<script type="text/javascript">
$(function(){
	$("[f='but_save']").bind("click", function(){
		$("#myform").submit();
	});
	
	$("[f='but_sel_var']").bind("click", function(){
		if ($(this).hasClass("current")) {
			$(this).removeClass("current");
		}
		else {
			$(this).addClass("current");
		}
		_sel_list_val();
	});
});
function _sel_list_val() {
	$val = "";
	$("#language_list em").each(function(){
		if ($(this).hasClass("current")) {
			$val = $val+$(this).attr("data-id")+",";
		}
	});
	$("#language").val($val);
}
</script>

<!--{include file="<!--{$oetplpath}-->block_footer.tpl"}-->
</body>
</html>